package com.linkhub.oms.dao.mpservice;

import com.linkhub.oms.entity.SupplierEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 供应商表 服务类
 * </p>
 *
 * @author echo
 * @since 2024-04-24
 */
public interface ISupplierService extends IService<SupplierEntity> {

    List<SupplierEntity> listByUserId(String userId);

    SupplierEntity getBySupplierId(String userId, String sysSupplierId);

    boolean existSupplier(String userId, String supplierName, String excludeSysSupplierId);

    boolean existSupplier(String userId, String supplierName);

    boolean exist(String userId, String sysSupplierId);

    List<SupplierEntity> getBySupplierIds(String userId, List<String> sysSupplierIdList);
}
